/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.domain.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Admin
 */
public class TopicDO implements Serializable {
    private Integer topicId;
    private AccountDO account;
    private String topicTitle;
    private Timestamp topicTime;
    private Integer referenceId;
    private String referenceTypeCode;
    private Timestamp createdDate;
    private Integer categoryId;
    private List<PostDO> posts = new ArrayList<PostDO>(0);

    /**
     * @return the topicId
     */
    public Integer getTopicId() {
        return topicId;
    }

    /**
     * @param topicId the topicId to set
     */
    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    /**
     * @return the account
     */
    public AccountDO getAccount() {
        return account;
    }

    /**
     * @param account the account to set
     */
    public void setAccount(AccountDO account) {
        this.account = account;
    }

    /**
     * @return the topicTitle
     */
    public String getTopicTitle() {
        return topicTitle;
    }

    /**
     * @param topicTitle the topicTitle to set
     */
    public void setTopicTitle(String topicTitle) {
        this.topicTitle = topicTitle;
    }

    /**
     * @return the topicTime
     */
    public Timestamp getTopicTime() {
        return topicTime;
    }

    /**
     * @param topicTime the topicTime to set
     */
    public void setTopicTime(Timestamp topicTime) {
        this.topicTime = topicTime;
    }

    /**
     * @return the referenceId
     */
    public Integer getReferenceId() {
        return referenceId;
    }

    /**
     * @param referenceId the referenceId to set
     */
    public void setReferenceId(Integer referenceId) {
        this.referenceId = referenceId;
    }

    /**
     * @return the referenceTypeCode
     */
    public String getReferenceTypeCode() {
        return referenceTypeCode;
    }

    /**
     * @param referenceTypeCode the referenceTypeCode to set
     */
    public void setReferenceTypeCode(String referenceTypeCode) {
        this.referenceTypeCode = referenceTypeCode;
    }

    /**
     * @return the createdDate
     */
    public Timestamp getCreatedDate() {
        return createdDate;
    }

    /**
     * @param createdDate the createdDate to set
     */
    public void setCreatedDate(Timestamp createdDate) {
        this.createdDate = createdDate;
    }

    /**
     * @return the categoryId
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * @param categoryId the categoryId to set
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * @return the posts
     */
    public List<PostDO> getPosts() {
        return posts;
    }

    /**
     * @param posts the posts to set
     */
    public void setPosts(List<PostDO> posts) {
        this.posts = posts;
    }
}
